{% extends "core/base_site.html" %}
{% load static %}

{% block content %}
<div id="content">{% if posts %}
{% for o in posts %}
<div class="post-item">
    <div class="post-item-title"><a href="/post/{{ o.date|date:'Y/m/d/' }}{{ o.seed }}">{% if o.name %}{{ o.name }}{% else %}{{ o.title }}{% endif %}</a></div>
    <div class="post-item-content">{{ o.excerpt|safe }}</div>
    <div class="post-item-clear"></div>
    <div class="post-item-describe">
        posted @ {{ o.date|date:'Y-m-d H:m:s' }} {{ o.author }} 阅读({{ o.read_count }}) 评论({{ o.comments_set.all.count }})
        <a href="/blog/edit/{{ o.seed }}">编辑</a>
        <a href="/blog/delete/{{ o.seed }}">删除</a></div>
    <div class="clear"></div>
</div>
{% endfor %}
{% endif %}
</div>
{% endblock %}
